<?php 
$this->menu = array(
);

$cs = Yii::app()->clientScript;
$cs->registerScriptFile(BASE_URL . '/js/jquery_plus/jquery.form.js', CClientScript::POS_END);
?>
<h2><a href="/manage/show3d/admin">360度展示管理</a> / 编辑</h2>
<?php 
$this->beginWidget('CActiveForm', array(
	'id'			=> 'show_360_form',
	'htmlOptions' 	=> array('class'=>'setting_form'),
));
?>
	<div class="setting_nav"></div>
	<dl class="setting_content">
		<dt>基本信息</dt>
		<dd>
			<strong>图片名称：</strong>
			<?php echo YHtml::activeTextField($model, 'name', array('model'=>'Show360', 'rule'=>'^.{1,20}$', 'next_focus'=>''))?>
		</dd>
		<dd>
			<strong>标签：</strong>
			<?php 
			$this->widget('manage.widget.TagEditWidget',array(
				'tags' 	=> isset($model['tags'])?$model['tags']:null,
				'name'	=> 'Show360[tags][]',
				'tips'	=> '可用于筛选、分组',
			));
			?>
		</dd>
		<dt>帧</dt>
		<dd>
			<div class="note">
				360度展示，需要12、24、36、72帧的商品图片，建议使用24帧及以上，以提高流畅性！
				<?php 
				if(!empty($model['_id']) && !(isset($model['finish']) && !$model['finish'])){
					echo '<br><span class="red">图片尚未处理完成！</span>';
					echo CHtml::link('马上切割', '/manage/Show3D/Edit/' . $model['_id'] . '?act=_split_imgs', array('class'=>'cut_btn'));
				}
				?>
			</div>
			<?php 
			$this->widget('manage.widget.UploaderWidget',array(
				'pictures' 			=> isset($model['pictures'])?$model['pictures']:null,
				'base_path'			=> isset($model['base_path'])?$model['base_path']:'',
				'has_main_picture'	=> false,
			));
			?>
		</dd>
		<dt>高级设置</dt>
		<dd>
			<strong>存储路径：</strong>
			<?php echo YHtml::activeTextField($model, 'path', array('model'=>'Show360', 'next_focus'=>''))?>
			<p>可指定云端存储，以提交网络速度</p>
		</dd>
	</dl>
	<div class="buttons right">
		<?php echo YHtml::activeHiddenField($model, '_id', array('model'=>'Show360'))?>
		<input type="button" class="button save_btn" value="保存"/>
	</div>
<?php $this->endWidget(); ?>